//
//  CustomPickerView.h
//  BSNL_Market
//
//  Created by ayi on 2018/5/10.
//  Copyright © 2018 ayi. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    DatePicker,
    CustomPicker,
    CustomConfirmOrderTimePicker,
} PickerViewMode;

typedef void(^pickerCallBack)(id resutData);

@interface CustomPickerView : UIView

@property (nonatomic, strong) UIPickerView *picker;
@property (nonatomic, strong) UIDatePicker *datepicker;
@property (nonatomic, assign) PickerViewMode viewMode;
//@property (nonatomic, copy) void(^resultBlock)(id resutData);
@property (nonatomic, copy) pickerCallBack resultBlock;



+ (instancetype)initWithFrame:(CGRect)frame
                 withModeType:(PickerViewMode)type
                  andTitleLab:(NSString *)titleStr
                 componentAry:(NSArray *)ary
                 andHasChoose:(id )chooseData
                  andCallBack:(pickerCallBack)resultblock;



- (void)showInView;

@end
